﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.Deployment.TeamFoundation.Entity.Enum;

namespace PSE.Deployment.TeamFoundation.Entity
{
    public class WorkItem
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public WorkItemType Type { get; set; }
        public string StateDescription { get; set; }
        public Version Version { get; set; }
        public DateTime CreatedDate { get; set; }
        public string CreatedBy { get; set; }
        public DateTime FinishDate { get; set; }
        public string GerenarationError { get; set; }
        public List<Changeset> Artifacts { get; set; }
        public string SystemId { get; set; }
        public int ProcessId { get; set; }
        public string TeamProject { get; set; }
        public string PackageIteration { get; set; }
        public string ReleaseGroupId { get; set; }

        public string FullVersion
        {
            get
            {
                return Version.ToString();
            }
        }

        public WorkItem()
        {
            this.Version = new Version();
            this.Artifacts = new List<Changeset>();
        }
    }
}
